package com.example.idea.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
@TableName("orders")
public class Orders {

    /**
     * ID  type = IdType.AUTO自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    private String no;

    /**
     * 订单名称
     */
    private String name;

    /**
     * 订单金额
     */
    private BigDecimal money;

    /**
     * 用户ID
     */
    private Integer userid;

    /**
     * 订单分类
     */
    private String category;

    /**
     * 订单日期
     */
    private String date;
}